package cn.gson.springboot.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the mzcost_details_record_px database table.
 * 
 */
@Entity
@Table(name="mzcost_details_record_px")
@NamedQuery(name="MzcostDetailsRecordPx.findAll", query="SELECT m FROM MzcostDetailsRecordPx m")
public class MzcostDetailsRecordPx implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="mzcost_details_record_id")
	private int mzcostDetailsRecordId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="charge_xmdate")
	private Date chargeXmdate;

	@Column(name="charge_xmjze")
	private BigDecimal chargeXmjze;

	@Column(name="xmprescription_ss")
	private BigDecimal xmprescriptionSs;

	@Column(name="xmprescription_ys")
	private BigDecimal xmprescriptionYs;

	@Column(name="xmprescription_zl")
	private BigDecimal xmprescriptionZl;
	
	@Column(name="xmprescription_yh")
	private BigDecimal xmprescriptionYh;

	private String xmsfr;

	//bi-directional many-to-one association to CureCostPx
	@ManyToOne
	@JoinColumn(name="cure_cost_id")
	private CureCostPx cureCostPx;

	//bi-directional many-to-one association to RegisteredPx
	@ManyToOne
	@JoinColumn(name="outpatient_id")
	private RegisteredPx registeredPx;

	public MzcostDetailsRecordPx() {
	}

	
	
	public BigDecimal getXmprescriptionYh() {
		return xmprescriptionYh;
	}



	public void setXmprescriptionYh(BigDecimal xmprescriptionYh) {
		this.xmprescriptionYh = xmprescriptionYh;
	}



	public int getMzcostDetailsRecordId() {
		return this.mzcostDetailsRecordId;
	}

	public void setMzcostDetailsRecordId(int mzcostDetailsRecordId) {
		this.mzcostDetailsRecordId = mzcostDetailsRecordId;
	}

	public Date getChargeXmdate() {
		return this.chargeXmdate;
	}

	public void setChargeXmdate(Date chargeXmdate) {
		this.chargeXmdate = chargeXmdate;
	}

	public BigDecimal getChargeXmjze() {
		return this.chargeXmjze;
	}

	public void setChargeXmjze(BigDecimal chargeXmjze) {
		this.chargeXmjze = chargeXmjze;
	}

	public BigDecimal getXmprescriptionSs() {
		return this.xmprescriptionSs;
	}

	public void setXmprescriptionSs(BigDecimal xmprescriptionSs) {
		this.xmprescriptionSs = xmprescriptionSs;
	}

	public BigDecimal getXmprescriptionYs() {
		return this.xmprescriptionYs;
	}

	public void setXmprescriptionYs(BigDecimal xmprescriptionYs) {
		this.xmprescriptionYs = xmprescriptionYs;
	}

	public BigDecimal getXmprescriptionZl() {
		return this.xmprescriptionZl;
	}

	public void setXmprescriptionZl(BigDecimal xmprescriptionZl) {
		this.xmprescriptionZl = xmprescriptionZl;
	}

	public String getXmsfr() {
		return this.xmsfr;
	}

	public void setXmsfr(String xmsfr) {
		this.xmsfr = xmsfr;
	}

	public CureCostPx getCureCostPx() {
		return this.cureCostPx;
	}

	public void setCureCostPx(CureCostPx cureCostPx) {
		this.cureCostPx = cureCostPx;
	}

	public RegisteredPx getRegisteredPx() {
		return this.registeredPx;
	}

	public void setRegisteredPx(RegisteredPx registeredPx) {
		this.registeredPx = registeredPx;
	}

}